﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理系统</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript" src="js/bar.js"></script>
<script language="javascript" src="js/zDialog.js" type="text/javascript"></script>
<script language="javascript" src="js/zDrag.js" type="text/javascript"></script>
<script language="javascript" src="js/initial.js" type="text/javascript"></script>
<script type="text/javascript" src="js/table.js"></script>
<script type="text/javascript" src="js/verify.js"></script>
<script type="text/javascript" src="dwr/engine.js"></script>
<script type="text/javascript" src="dwr/util.js"></script>
<script type="text/javascript" src="dwr/interface/AjaxProductDao.js"></script>
<script type="text/javascript" src="dwr/interface/AjaxUserDao.js"></script>
<script type="text/javascript" src="dwr/interface/AjaxAddressDao.js"></script>
<script type="text/javascript" src="dwr/interface/AjaxOrderDetailDao.js"></script>
<script type="text/javascript" src="dwr/interface/AjaxOrderDao.js"></script>
<script type="text/javascript">
function load(){

      document.getElementById("page1").style.display="block";
      document.getElementById("page2").style.display="none";
      document.getElementById("page3").style.display="none";
	  document.getElementById("page4").style.display="none";
	  document.getElementById("alllist").style.display="block";
      document.getElementById("unpaidlist").style.display="none";
      document.getElementById("paidlist").style.display="none";
      user();
      alllist();
      unpaidlist();
      paidlist();
      sum();
}  
</script>
</head>
<body onload="landing(),load()">
<div class="bar">
    	<img src="icon/apple.png" style="border-color:#333"/>
        <div class="list">   
   <ul>   
     <li><a href="#" onclick="showDiv('page1')">产品</a></li>   
     <li><a href="#" onclick="showDiv('page2')">订单</a></li>   
     <li><a href="#" onclick="showDiv('page3')">客户</a></li>   
     <li><a href="#" onclick="showDiv('page4')">结算</a></li>   
   </ul>  </div>
    </div>
    <div class="content">
    	<div class="head">
       		<a href="web_login.html" id="exit">注销</a>
        </div>
        
        <!--产品页面-->
      <div id="page1">
        	<div class="search sosu">
			<form>
			  <input type="text" id="searchProduct" placeholder="输入产品名称...">
			  <button type="button" onclick="getKeyProduct()"></button>
			</form>
		  </div>
		   <input type="button" name="addproduct" value="添加" onclick="add()" style="width:10%" class="button1"/>
		   <input type="button" name="showall" value="全部" onclick="removeAll(),landing()" style="width:10%" class="button1"/>
          <div id="product" align="center">
          
          	<!--<div class="product">
            	<a href="#"><img src="img/2.jpg" alt="product1" width="184" height="223" /></a>
            	<div class="text" >product1</div>
            </div>
            <div class="product">
            	<a href="#"><img src="img/2.jpg" alt="product2" width="184" height="223" /></a>
            	<div class="text" >product2</div>
            </div>
            <div class="product">
            	<a href="#"><img src="img/2.jpg" alt="product3" width="184" height="223" /></a>
            	<div class="text" >product3</div>
            </div>
            <div class="product">
            	<a href="#"><img src="img/2.jpg" alt="product4" width="184" height="223" /></a>
            	<div class="text" >product4</div>
            </div><br>
            <div class="product">
            	<a href="#"><img src="img/2.jpg" alt="product5" width="184" height="223" /></a>
            	<div class="text" >product5</div>
            </div>
            <div class="product">
            	<a href="#"><img src="img/2.jpg" alt="product3" width="184" height="223" /></a>
            	<div class="text" >product3</div>
            </div>
            <div class="product">
            	<a href="#"><img src="img/2.jpg" alt="product4" width="184" height="223" /></a>
            	<div class="text" >product4</div>
            </div>
            <div class="product">
            	<a href="#"><img src="img/2.jpg" alt="product5" width="184" height="223" /></a>
            	<div class="text" >product5</div>
            </div>-->
            
            </div>
            <div>
            <input align="left" type="button" id="first" name="first" value="首页" style="width:10%" class="button1"/>
            <div  style="width:85%;text-align:right;display:inline-block">

            <input type="button" name="last" id="last" value="上一页" style="width:13%" class="button1"/>
            <input type="button" name="next" id="next" value="下一页" style="width:13%" class="button1"/>
            </div>
            </div>    
            
        </div>
        
        
        <!--订单-->
        <div id="page2">
        <table width="300">
          <tr>
        	<td class="tablelist" onclick="showDiv('alllist')">全部订单</td>
            <td class="tablelist" onclick="showDiv('unpaidlist')">未付订单</td>
            <td class="tablelist" onclick="showDiv('paidlist')">已付订单</td>
          </tr>
        </table>
        
        <div id="alllist">
        <div class="search sosu">
			<form>
			  <input type="text" placeholder="输入用户手机号..." name="orderphone">
			  <button type="button"  onclick=" findorder()" ></button>
			</form>
		  </div>
		  <input type="button" name="allorder" value="查看所有订单" style="width:20%" class="button1" onclick="alllist()"/>
        	<table id="tableSorts1">
		        <tr>  
			    <th ><span class="sort_able">订单ID</span></th>  
			    <th ><span class="sort_able">用户ID</span></th>  
			    <th ><span class="sort_able">订单总金额</span></th>
                <th style="width:190px"><span class="sort_able">订单日期</span></th> 
                <th ><span class="sort_able">地址序号</span></th>
                <th ><span class="sort_able">订单状态</span></th> 
                <!--<th><span class="sort_able">操作</span></th>--> 
		       </tr>    
           </table>

          <div id="table_1"></div>
         <table width="40%" border="1">
        <tr><td><div id="barcon" name="barcon"></div></td></tr>
    </table>
        </div>
        
        <div id="unpaidlist" >
        	<table id="tableSorts2">  
	           
		        <tr>  
			    <th ><span class="sort_able">订单ID</span></th>  
			    <th ><span class="sort_able">用户ID</span></th>  
			    <th ><span class="sort_able">订单总金额</span></th>
                <th ><span class="sort_able">订单日期</span></th> 
                <th ><span class="sort_able">地址序号</span></th>
                <th ><span class="sort_able">订单状态</span></th> 
                <!--<th><span class="sort_able">操作</span></th>-->
		       </tr>  
	    </table>
	         <div id="table_2"></div>
         <table width="40%" border="1">
        <tr><td><div id="barcon1" name="barcon1"></div></td></tr>
    </table>
          </div>
        
        <div id="paidlist" >
        <table id="tableSorts3">  
	            
		        <tr>  
			    <th ><span class="sort_able">订单ID</span></th>  
			    <th ><span class="sort_able">用户ID</span></th>  
			    <th ><span class="sort_able">订单总金额</span></th>
                <th ><span class="sort_able">订单日期</span></th> 
                <th ><span class="sort_able">地址序号</span></th>
                <th ><span class="sort_able">订单状态</span></th> 
                <!--<th><span class="sort_able">操作</span></th>--> 
		       </tr>  
	   </table>
	   <div id="table_3"></div>
          <table width="40%" border="1">
        <tr><td><div id="barcon2" name="barcon2"></div></td></tr>
    </table> 
        </div>
        </div>
        
        
        <!--客户-->
        <div id="page3">
        <div class="search sosu">
			<form>
			  <input type="text" placeholder="输入用户手机号..." name="Customerphone">
			  <button type="button"  onclick="findcustomer()"></button>
			</form>
		  </div>
		  <input type="button" name="allcustomer" value="查看所有客户" style="width:20%" class="button1" onclick="user()"/>
          <div class="pad">
           <table id="tableSorts4">    
		        <tr>  
			    <th ><span class="sort_able">用户ID</span></th>  
			    <th ><span class="sort_able">用户密码</span></th>  
			    <th ><span class="sort_able">用户手机号码</span></th> 
                <th ><span class="sort_able">地址数量</span></th>
		       </tr>  
	          </table>
		       </table>
		       <div id="table_4"></div>
          <table width="40%" border="1">
        <tr><td><div id="barcon3" name="barcon3"></div></td></tr>
    </table> 
          </div>  
        </div>
        
        
        <!--结算-->
        <div id="page4">
        <table width="250">
          <tr>
        	<td class="tablelist" >结算清单</td>
          </tr>
        </table>
        
        <div id="sum" >
        <form name="reg_testdate" style="width:900px"\>
        开始日期
	    <select name="YYYY" onChange="YYYYDD(this.value)" class="date">
	    	<option value="">请选择 年</option>
	   </select>
	   <select name="MM" onChange="MMDD(this.value)" class="date">
		  <option value="">选择 月</option>
	  </select>
      <select name="DD" onChange="DD" class="date">
		  <option value="">选择 日</option>
	  </select>
      &nbsp;&nbsp;
      结束日期
	    <select name="YYYY1" onChange="YYYYDD1(this.value)" class="date">
	    	<option value="">请选择 年</option>
	   </select>
	   <select name="MM1"  class="date"  onChange="MMDD1(this.value)">
		  <option value="">选择 月</option>
	  </select>
      <select name="DD1" onChange="DD1" class="date">
		  <option value="">选择 日</option>
	  </select>
      <input name="sure" type="button" value="确定" style="width:80px;font-size: 20px;" onclick="sumtime()"  />
      </form>
      <input type="button" name="allsum" value="查看所有结算清单" style="width:30%" class="button1" onclick="sum()"/>
      <table id="tableSorts5">   
		        <tr>  
			    <th ><span class="sort_able">产品ID</span></th>  
			    <th ><span class="sort_able">产品名称</span></th>  
			    <th ><span class="sort_able">产品单价</span></th>
                <th ><span class="sort_able">产品销量</span></th> 
                <th ><span class="sort_able">产品总金额</span></th>
		       </tr> 
          </table>
          <div id="table_5"></div>
          <table width="40%" border="1">
        <tr><td><div id="barcon4" name="barcon4"></div></td></tr>
    </table> 
        </div>
        
        
        </div>
    </div>
</body>
</html>